import request from '@/utils/request.js'

// 设置服务器
export function addServer(data) {
    return request({
        url: '/api/comm/modifyServer',
        method: 'post',
        data
    })
}

// 设置wifi信息
export function addWifi(data) {
    return request({
        url: '/api/comm/modifyWifi',
        method: 'post',
        data
    })
}

// 获取服务器信息
export function getServerInfo(data) {
    return request({
        url: '/api/comm/searchServer',
        method: 'get',
        params: data
    })
}

// 获取wifi信息
export function getWifiInfo(data) {
    return request({
        url: '/api/comm/searchWifi',
        method: 'get',
        params: data
    })
}